package com.drama.api.sys.log.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
public class SysLogSearchVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "操作模块[精确搜索]")
    private String logModule;

    @ApiModelProperty(value = "日志详情[模糊搜索]")
    private String logDesc;

    @ApiModelProperty(value = "操作开始时间(yyyy-MM-dd)")
    private String startDate;
    @ApiModelProperty(value = "操作结束时间(yyyy-MM-dd)")
    private String endDate;

    @ApiModelProperty(value = "页数")
    private Integer pageNum;

    @ApiModelProperty(value = "每页行数")
    private Integer pageSize;

    public Integer getPageNum() {
        if (pageNum == null) {
            pageNum = 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null) {
            pageSize = 10;
        }
        return pageSize;
    }
}